<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>列表页</title>
    <link rel="stylesheet" href="/Public/css/bootstrap.min.css">
    <link rel="stylesheet" href="/Public/css/animate.min.css">
    <link rel="stylesheet" href="/Public/css/jquery.gDialog.css">
</head>
<body>
<!-- header start -->

    <div class="container">
        <div class="row">
            <div class="col-xs-6 col-md-4">
            </div>
            <div class="col-xs-6 col-md-4">
            <h1>欢迎登录</h1>
                <form action="<?php echo U('login');?>" enctype="multipart/form-data" method="post">
                    <div class="form-group">
                        <label for="exampleInputEmail1">
                            Email
                        </label>
                        <input class="form-control" id="exampleInputEmail1" name="email" placeholder="Email" type="email" value="">
                        </input>
                    </div>
                    <div class="form-group">
                        <label for="exampleInputPassword1">
                            密码
                        </label>
                        <input class="form-control" id="exampleInputPassword1" name="pwd" placeholder="Password" type="password" value="">
                        </input>
                    </div>
                    <p>
                        <a href="<?php echo U('register');?>">
                            没有账号，现在去注册！
                        </a>
                    </p>
                    <button class="btn btn-default" type="submit">
                        登录
                    </button>
                </form>
            </div>
            <div class="col-xs-6 col-md-4">
            </div>
        </div>
    </div>

</div>
<!-- header end -->

<!-- content start -->


<!-- content end -->

<!--footer start-->


<!--footer end-->

<!-- script start -->
<script src="/Public/js/jquery-1.8.3.min.js"></script>
<script src="/Public/js/bootstrap.min.js"></script>
<script src="/Public/js/highlight.min.js"></script>
<script src="/Public/js/jquery.gDialog.min.js"></script>
<script src="/Public/js/holder.min.js"></script>
<!-- script end -->
<script>
    $(function(){
        var p=1;
        $(".down").click(function(){
            p++;
            var url="<?php echo U('Home/Index/index',I('get.'));?>";
            $.get(url,{p:p},function(tt){
                if (tt.status==1) {
                    $(".th").nextAll().remove();
                    $(".th").after(tt.data);
                }else{
                    p--;
                }               
                console.log(tt);
            });
        })
        $(".up").click(function(){
            p--;
            var url="<?php echo U('Home/Index/index',I('get.'));?>";
            $.get(url,{p:p},function(tt){
                if (tt.status==1) {
                    $(".th").nextAll().remove();
                    $(".th").after(tt.data);
                }else{
                    p++;
                }               
                console.log(tt);
            });
        })
    });
</script>

</body>
</html>